<?php
namespace app\common\model;

use core\db\Model;

class Profile extends Model {
    protected static $tableName = 'profiles';
    protected static $primaryKey = 'id';

    // 一个资料属于一个用户
    public function user() {
        return $this->belongsTo(User::class);
    }
}